//
//  NSString+Base.h
//  DatePicker
//
//  Created by Burn on 2018/11/13.
//  Copyright © 2018 nmgxysh. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Base)
/**手机号码检测*/
+ (BOOL)validateMobile:(NSString *)mobile;



/**获取当前时间*/
+ (NSString*)getCurrentTimes;

/**本月一共有多少天*/
+ (NSUInteger )currenttMonthDayNum;

/**该月有多少天*/
+ (NSUInteger )monthDayNum:(NSDate *)date;

/**当前月剩余多少天*/
+ (NSUInteger)currentMonthBeLeftDay;

/**当年剩余多少月*/
+ (NSUInteger)currentYearBeLeftMonth;

/**获取指定月的天数*/
+ (NSInteger)howManyDaysInThisMonth:(NSInteger)imonth;

/**今年已经过去多少天了(不包含今天)*/
+ (NSUInteger)howManyDaysInCurrentYearFuture;

/**今年剩余多少天*/
+ (NSUInteger)currentYearBeLeftHowManyDay;

/**获取当前时间月日周*/
+ (NSString*)monthDayWeeks:(NSDate *)date isToday:(BOOL)today;

/**获取当前时间 点数*/
+(NSUInteger )getCurrentHour;

/**获取当前时间 点数*/
+(NSUInteger )getCurrentMinute;

/**获取周天 返回周几*/
+ (NSInteger)getWeekday:(NSDate *)date;

/**获取周天这个是返回正常1234567*/
+ (NSInteger)getWeekDay:(NSDate *)date;


/**判断字符串中是否包含符号*/
- (BOOL)judgeTheillegalCharacter:(NSString *)content;

/**字符串是否都是数字*/
+ (BOOL)isPureInt:(NSString *)string;

@end
